<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ include file="/common/taglibs.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <%@ include file="/common/meta.jsp" %>
    <title><decorator:title/> | <fmt:message key="webapp.name"/></title>

    <link rel="stylesheet" type="text/css" media="all"
          href="<c:url value='/styles/${appConfig["csstheme"]}/theme.css'/>"/>


    <!-- css -->
    <link rel="stylesheet" type="text/css"
          href="http://yui.yahooapis.com/2.5.2/build/reset-fonts-grids/reset-fonts-grids.css">
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/assets/skins/sam/skin.css">
    <!-- js -->
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/container/container-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/menu/menu-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/button/button-min.js"></script>
    <script type="text/javascript"
            src="http://yui.yahooapis.com/2.5.2/build/datasource/datasource-beta-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/editor/editor-beta-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/imageloader/imageloader-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/layout/layout-beta-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/slider/slider-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/tabview/tabview-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/treeview/treeview-min.js"></script>
    <script type="text/javascript"
            src="http://yui.yahooapis.com/2.5.2/build/uploader/uploader-experimental.js"></script>
    <script type="text/javascript" src="<c:url value='/scripts/prototype.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/scriptaculous.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/global.js'/>"></script>

    <script type="text/javascript">

        /*
                    Initialize and render the Menu when its elements are ready
                    to be scripted.
               */

        YAHOO.util.Event.onContentReady("nav", function () {
            var oMenuBar = new YAHOO.widget.MenuBar("nav",
            {   zIndex: 10,
                position: "static",
                autosubmenudisplay: true,
                lazyload: false,
                width:900
            }
                    );

            oMenuBar.render();
            oMenuBar.show();
        });


    </script>
    <style type="text/css">
        #nav {

            position: static;

        }

    </style>
    <decorator:head/>
</head>
<body class="yui-skin-sam"<decorator:getProperty property="body.id" writeEntireProperty="true"/><decorator:getProperty
        property="body.class" writeEntireProperty="true"/>>

<div id="page">
    <div id="header" class="clearfix">
        <jsp:include page="/common/header.jsp"/>
        <c:set var="currentMenu" scope="request"><decorator:getProperty property="meta.menu"/></c:set>

        <c:if test="${currentMenu == 'AdminMenu'}">
            <div id="sub">
                <menu:useMenuDisplayer name="Velocity" config="bandmateMenu.vm" permissions="rolesAdapter">
                </menu:useMenuDisplayer>
            </div>
        </c:if>

        <div id="yui-main">
            <div class="yui-a">
                <div id="nav" class="yuimenubar yuimenubarnav">
                    <div class="bd">
                        <jsp:include page="/common/menu.jsp"/>
                    </div>
                </div>
            </div>
        </div>
        <!-- end nav -->

        <div>

        </div>

    </div>

    <div id="content" class="clearfix">
        <div id="main">
            <%@ include file="/common/messages.jsp" %>
            <h2><decorator:getProperty property="meta.heading"/></h2>
            <decorator:body/>
        </div>

        <div id="leftContent">
            <h3>Left Head</h3>
        </div>


    </div>

    <div id="footer" class="clearfix">
        <jsp:include page="/common/footer.jsp"/>
    </div>
</div>
</body>
</html>
